﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MongoCamp;
using MongoDB.Bson;

namespace SimpleDemo
{
    class BlogReview : EntityCollection<ObjectId, BlogReview>
    {
        public BlogReview()
            : base("blogReview", MongoServerPack.DefaultDB)
        {
            ReviewID = PrimaryKey.GenerateNewId();
            CreatedOn = DateTime.Now;
        }

        public ObjectId ReviewID
        {
            get { return GetPrimaryKeyID(); }
            set { SetPrimaryKeyID(value); }
        }

        public int BlogID { get; set; }

        public string Nickname { get; set; }

        public string ReviewContent { get; set; }

        public DateTime CreatedOn { get; set; }
    }
}
